
#include "includes.h"
#include "structs.h"
#include "declares.h"

char *query="/home/cong/GRAPE/debug/tw.q";

char *check[] ={"./check/sssp-result/twitter-sssp-4.dat","./check/sssp-result/twitter-sssp-1.dat"," ./check/sssp-result/twitter-sssp-18.dat"};

char *checked[] ={"./dataset/twitter/twitter.v.sssp.query_2.dat","  ./dataset/twitter/twitter.v.sssp.query_1.dat","  ./dataset/twitter/twitter.v.sssp.query_3.dat"};

int main(int ac, char**av)
{
        fprintf(stderr, "the queries are %s\n", query);
        va_system("cat %s", query);
        for(int i=0;i<3;++i) {
                fprintf(stderr,"comparing\n\t%s\n\t%s\n", check[i],checked[i]);
                int rs=va_system("cmp %s %s", check[i], checked[i]);
                grape_errexit_if(rs, 1, "cmp %s %s failed\n", check[i], checked[i]);
                fprintf(stderr, "correct\n");
        }
        fprintf(stderr, "all test cases are passed");
        return 0;        
}

                
